import http from "@/utils/http"
import {
	host
} from '@/config'

export default {
	getLCInfoAll(typeId) {
		return http.get(`${host}/collect?typeId=${typeId}&objectId=1`)
	},
	getLCInfo(itemId, typeId) {
		return http.get(`${host}/collect/${itemId}?typeId=${typeId}&objectId=1`);
	}, //获取单个商品点赞和收藏信息
	postLCInfo(itemId,typeId) {
		return http.post(`${host}/collect?typeId=${typeId}&objectId=1`, {
			itemId
		});
	}, //进行点赞和收藏
	deleteLCInfo(collectId) {
		return http.delete(`${host}/collect/${collectId}`);
	} //取消点赞和收藏
}
